import request from '@/utils/request'

// 查询听力分组列表
export function listAudioGroup(query) {
  return request({
    url: '/exam/audioGroup/list',
    method: 'get',
    params: query
  })
}

// 查询听力分组详细
export function getAudioGroup(groupId) {
  return request({
    url: '/exam/audioGroup/' + groupId,
    method: 'get'
  })
}

// 新增听力分组
export function addAudioGroup(data) {
  return request({
    url: '/exam/audioGroup',
    method: 'post',
    data: data
  })
}

// 修改听力分组
export function updateAudioGroup(data) {
  return request({
    url: '/exam/audioGroup',
    method: 'put',
    data: data
  })
}

// 删除听力分组
export function delAudioGroup(groupId) {
  return request({
    url: '/exam/audioGroup/' + groupId,
    method: 'delete'
  })
}

// 导出听力分组
export function exportAudioGroup(query) {
  return request({
    url: '/exam/audioGroup/export',
    method: 'get',
    params: query
  })
}